package com.zyh.entity;

import lombok.Data;

import java.util.Date;


@Data
public class BorrowBook {

    private Integer id;
    private Integer bookidd;
    private Integer userid;
    private String lend;
    private Date lendTime;
    private Date sendTime;
//    private  Book book;


    private Integer page;
    private Integer start;
    private Integer limit;


    public BorrowBook(){
        if (page==null) {
            start = 0;
        }else {
            start = (page - 1) * limit;
        }
    }
}
